<?php

/**
 * @author     Thibaut Cromphaut and Dimitry Dierickx
 * @copyright  Copyright (c) 2011 Safti-Kado
 */
class Application_Form_EditDepartment extends Zend_Form
{

    public function init()
    {   
        // Veld 'AfdelingID'
        $this->addElement('hidden', 'department_id', array(
            'label'      => '',
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));
        
        // Veld 'Afdelingnaam'
        $this->addElement('text', 'department_name', array(
            'label'      => 'Naam:',
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));

        // Veld 'Afdeling punten(beschrijving)'
        /*$this->addElement('text', 'department_description', array(
            'label'      => 'Beschrijving:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));*/

        // Veld 'Afdelingskleur'
        $this->addElement('text', 'department_color', array(
            'label'      => 'Kleur:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        // Veld 'Afdeling punten(beschrijving)'
        $this->addElement('text', 'department_points1', array(
            'label'      => 'Punten (1):',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        $this->addElement('text', 'department_points2', array(
            'label'      => 'Punten (2):',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        // Knop 'Versturen'
        $this->addElement('submit', 'edit', array(
            'label'      => 'Wijzig',
        ));

        // CSRF-preventie (Cross-Site Request Forgery)
        $this->addElement('hash', 'no_csrf_registration', array(
            'salt' => 'unique',
        ));

    }


}

